package com.byname;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author lxh
 * @create 2019-04-02 14:38
 * @desc
 **/
public class App {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("byname-spring-beans.xml");
        Customer customer = (Customer) ac.getBean("customer");
        System.out.println(customer);
    }

}
